<!doctype html>
<html>

<head>
    <meta charset="utf-8" />
    <title>KindEditor Main Test</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="./themes/default/default.css" />
    <script src="./kindeditor-src.js"></script>
</head>

<body>
    <div id="content"></div>

    <script>
        KindEditor.ready(function (K) {
            var editor = K.create('#content', {
                minHeight: 380,
                allowMediaUpload: true,
                allowMediaSize: 50,         //限制媒体上传50M
                allowFileManager: false,
                allowMediaSize: 10,         //限制视频文件上传10M
                allowFileSize: 10,          //限制文件上传10M
                allowImageSize: 5,          //限制图片上传5M
                uploadJson: './php/testdata.php?act=upload',     //上传接口
                filePostName: 'file',
                afterUpload: function (url,res,uploadType) {
                    console.log(uploadType,res);
                }
            });
        });
    </script>
</body>

</html>